package com.softtek.ibeacon.web.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.softtek.ibeacon.service.sys.StoreService;
import com.softtek.ibeacon.web.BaseController;
import com.softtek.ibeacon.web.util.MV;


@Controller
@RequestMapping("/sys/employee")
public class EmployeeController extends BaseController {

	
	@Autowired
	private StoreService storeService;

	@RequestMapping("/login")	
	public ModelAndView login(String employNumber, String password){
		MV mv = new MV("/index"); 
		try {
			 
			mv.addObject("data", storeService.login("a001", "7a57a5a743894a0e"));
			return mv.fwd();
		} catch (Exception e) {
			return mv.processException(e,"...");
		}
	} 
}
